home *** CD-ROM | disk | FTP | other *** search
-
- '
- '
- SUB HerculesPrintScreen STATIC
-
- DEFINT A-Z
-
- 'Print screen utility for Hercules (tm) and compatible video cards
- 'and HP LasetJet family and strictly compatible printers.
-
- DEF SEG = &HB000 'set segment pointer to begining of screen 3 page 0
-
- OPEN "LPT1:BIN" FOR RANDOM AS 1
- 'WIDTH "LPT1:", 255
-
- PRINT #1, CHR$(27) + "E"; 'reset printer
- PRINT #1, CHR$(27) + "*t100R"; 'resolution = 100dpi
- PRINT #1, CHR$(27) + "&a5C"; 'move cursor to column 5
- PRINT #1, CHR$(27) + "*r1A"; 'start raster grapics
-
- SCREEN 3, , 0, 1
-
- FOR y = 0 TO &H1E3C STEP &H5A
-
- FOR m = 0 TO 3
-
- 'FOR d = 0 TO 1
-
- PRINT #1, CHR$(27) + "*b90W";
-
- FOR x = 0 TO &H59
-
- PRINT #1, CHR$(PEEK(y + x + (m * &H2000)));
- POKE (x + y + (m * &H2000)) + 32768, PEEK(y + x + (m * &H2000))
-
- NEXT x
-
- 'NEXT d
-
- NEXT m
-
- NEXT y
-
- PRINT #1, CHR$(27) + "*rB"; 'end raster graphics
- PRINT #1, CHR$(27) + "E"; 'reset printer and send FF
- PRINT #1, CHR$(12)
-
- CLOSE 1
-
- SCREEN 3, , 0
-
- END SUB
-
-